.class Les/mh$a;
.super Lcom/estrongs/android/pop/app/ad/cn/j;
.source "CmsAdCardViewMaker.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Les/mh;->a(Landroid/content/Context;Landroid/view/ViewGroup;Lcom/estrongs/android/pop/app/ad/cn/AdType;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic a:Landroid/view/ViewGroup;

.field final synthetic b:Les/mh;


# direct methods
.method constructor <init>(Les/mh;Landroid/view/ViewGroup;)V
    .locals 0

    .line 1
    iput-object p1, p0, Les/mh$a;->b:Les/mh;

    iput-object p2, p0, Les/mh$a;->a:Landroid/view/ViewGroup;

    invoke-direct {p0}, Lcom/estrongs/android/pop/app/ad/cn/j;-><init>()V

    return-void
.end method


# virtual methods
.method public a(Lcom/estrongs/android/pop/app/ad/cn/AdChannel;)V
    .locals 1

    .line 1
    iget-object p1, p0, Les/mh$a;->a:Landroid/view/ViewGroup;

    if-eqz p1, :cond_0

    invoke-virtual {p1}, Landroid/view/ViewGroup;->getChildCount()I

    move-result p1

    if-lez p1, :cond_0

    .line 2
    iget-object p1, p0, Les/mh$a;->a:Landroid/view/ViewGroup;

    invoke-virtual {p1}, Landroid/view/ViewGroup;->removeAllViews()V

    .line 3
    iget-object p1, p0, Les/mh$a;->a:Landroid/view/ViewGroup;

    const/16 v0, 0x8

    invoke-virtual {p1, v0}, Landroid/view/ViewGroup;->setVisibility(I)V

    :cond_0
    return-void
.end method

.method public a(Lcom/estrongs/android/pop/app/ad/cn/AdChannel;Landroid/view/View;)V
    .locals 0

    .line 4
    iget-object p1, p0, Les/mh$a;->b:Les/mh;

    invoke-static {p1}, Les/mh;->a(Les/mh;)Lcom/qq/e/ads/nativ/NativeExpressADView;

    move-result-object p1

    if-eqz p1, :cond_0

    .line 5
    iget-object p1, p0, Les/mh$a;->b:Les/mh;

    invoke-static {p1}, Les/mh;->a(Les/mh;)Lcom/qq/e/ads/nativ/NativeExpressADView;

    move-result-object p1

    invoke-virtual {p1}, Lcom/qq/e/ads/nativ/NativeExpressADView;->destroy()V

    .line 6
    :cond_0
    instance-of p1, p2, Lcom/qq/e/ads/nativ/NativeExpressADView;

    if-eqz p1, :cond_1

    .line 7
    iget-object p1, p0, Les/mh$a;->b:Les/mh;

    check-cast p2, Lcom/qq/e/ads/nativ/NativeExpressADView;

    invoke-static {p1, p2}, Les/mh;->a(Les/mh;Lcom/qq/e/ads/nativ/NativeExpressADView;)Lcom/qq/e/ads/nativ/NativeExpressADView;

    :cond_1
    return-void
.end method
